<!DOCTYPE html>
<html lang="zh-cn" class="no-js">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>{$seo_title}</title>
    <meta name="keywords" content="{$keywords}" />
    <meta name="description" content="{$description}" />
    <link href="{STATIC_URL}avatar/css/dgy.base.css" rel="stylesheet" type="text/css" />
    <link href="{STATIC_URL}avatar/css/dgy.head.css" rel="stylesheet" type="text/css" />
    <link href="{STATIC_URL}avatar/css/dgy.group.css" rel="stylesheet" type="text/css" />
    <link href="{STATIC_URL}avatar/css/dgy.layout.css" rel="stylesheet" type="text/css" />
    <link href="//at.alicdn.com/t/font_958938_n3j31its8x.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="{STATIC_URL}avatar/js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="{STATIC_URL}avatar/js/baseMotheds.js"></script>
  </head>
  <body class="">
    <!-- header -->
    <div id="headGroup">
    {m:include "index","header"}
    </div>
    
        <div class="baseGroup w1100 mt40 layoutAuto">
            <div class="leftWrap pr10 layoutAuto">
                
                {if $parentid != 0}
                <div class="commonHeadLabel">
                    <span class="title mr20">
                        <a href="{get_category($parentid, 'pclink')}">全部</a>
                    </span>
                    {php $data = get_childcat($parentid);}
                	{loop $data $k=>$v}
                		<span class="title mr20">
                            <a {if isset($catid) && $v['catid']==$catid} class="on" {/if} href="{$v[pclink]}">{$v[catname]}</a>
                        </span>
                	{/loop}
                </div>
                {else}
                <div class="commonHeadLabel">
                    <span class="title mr20">
                        最近更新
                    </span>
                </div>
                {/if}
                
                <div class="indexListGrid">
    				{m:lists field="title,url,inputtime,catid,thumb,description,click" catid="$catid" order="id DESC" limit="9" page="page"}
        		    {loop $data $v}
                    <a href="{$v[url]}" target="_blank" class="item">
                        {if !empty($v['thumb'])}
                        <div class="content img">
                            <div class="catWrap"><div class="catBox"><span class="i">#</span>{get_catname($v['catid'])}</div></div>
                            <h2>{$v[title]}</h2>
                            <p class="detail layoutHide">{str_cut($v['description'], 220)}</p>
                            <p class="otherInfo">
                                <span class="mr5">{format_time($v['inputtime'])}</span>
                                <span class="mr5">浏览 {$v[click]}</span>
                            </p>
                            <div class="imgBox">
                                <img class="img" src="{$v[thumb]}" alt="{$v[title]}">
                            </div>
                        </div>
                        {else}
                        <div class="content">
                            <div class="catWrap"><div class="catBox"><span class="i">#</span>{get_catname($v['catid'])}</div></div>
                            <h2>{str_cut($v['title'], 120)}</h2>
                            <p class="detail layoutHide">{str_cut($v['description'], 220)}</p>
                            <p class="otherInfo">
                                <span class="mr5">{format_time($v['inputtime'])}</span>
                                <span class="mr5">浏览 {$v[click]}</span>
                            </p>
                        </div>
                        {/if}
                    </a>
    		        {/loop}
                </div>
                
                
        <div id="pageGroup">{$pages}</div>
                
                
            </div>
             <div class="rightWrap pl10 layoutAuto">
                <div class="commonHeadLabel small">
                    <span class="title">人气推荐</span>
                </div>
                
                <div class="indexListGrid aside">
    				{m:hits field="title,url,inputtime,catid,thumb,description,click" catid="$catid" thumb="1" limit="5"}
        		    {loop $data $v}
                    <a href="{$v[url]}" target="_blank" class="item">
                        <div class="content img">
                            <h2>{$v[title]}</h2>
                            <p class="otherInfo">
                                <span class="mr5">{get_catname($v['catid'])}</span>
                                <span class="mr5">浏览 {$v[click]}</span>
                            </p>
                            <div class="imgBox">
                                <img class="img" src="{$v[thumb]}" alt="{$v[title]}">
                            </div>
                        </div>
                    </a>
    		        {/loop}
                </div>
        
                <!-- 热门标签 -->
                <div class="commonHeadLabel small mt40">
                    <span class="title">热门标签</span>
                </div>
                <div class="indexTagGrid">
    				{m:tag field="id,tag,total" limit="10"}
    				{loop $data $v}
    				    <a href="{U('search/index/tag',array('id'=>$v['id']))}" class="item" target="_blank">{$v[tag]}</a>
    				{/loop}
        			<div class="clearfix"></div>
                </div>
                
                
                
                <!-- 广告业务 -->
                <div class="brandGrid" id="brandGrid"><a href="https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=psmzr0yi" target="_blank"><img class="img" src="https://www.duoguyu.com/dist/images/brand/brand-aliyun.jpg"></a></div>
            
                
            </div>
    		<div class="clearfix"></div>
        </div>
        
        
    

    <!-- footer -->
    <footer class="bgfa">
    {m:include "index","footer"}
    </footer>
      
  </body>
</html>
